home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
MacAddict 115
/
macaddict115.cdr
/
Software
/
Graphics & Multimedia
/
SwiftPublisher.dmg
/
Swift Publisher.pkg
/
Contents
/
Resources
/
postflight
< prev
next >
Wrap
Text File
|
2005-12-08
|
2KB
|
26 lines
#!/bin/bash
if test -d "/Library/Application Support/BeLight Software/ClipArt/English.lproj"; then
"$1/Contents/Resources/mixer" -v 0 -M "$1/Contents/Resources/Indexes/clipart.idx" "/Library/Application Support/BeLight Software/ClipArt/English.lproj/clipart.idx" "/Library/Application Support/BeLight Software/ClipArt/English.lproj/mrg_clipart.idx" > /dev/null
if test -f "/Library/Application Support/BeLight Software/ClipArt/English.lproj/mrg_clipart.idx"; then
#echo --- remove clipart.idx ---
rm -f "/Library/Application Support/BeLight Software/ClipArt/English.lproj/clipart.idx"
rm -f "/Library/Application Support/BeLight Software/ClipArt/English.lproj/clipart.idx.prop"
#echo --- rename mrg_clipart.idx to clipart.idx ---
mv -f "/Library/Application Support/BeLight Software/ClipArt/English.lproj/mrg_clipart.idx" "/Library/Application Support/BeLight Software/ClipArt/English.lproj/clipart.idx"
mv -f "/Library/Application Support/BeLight Software/ClipArt/English.lproj/mrg_clipart.idx.prop" "/Library/Application Support/BeLight Software/ClipArt/English.lproj/clipart.idx.prop"
fi
#echo --- merge category indexes ---
#cd "$1/Contents/Resources/indexes/CategoriesIndex"
find "$1/Contents/Resources/Indexes/CategoriesIndex" -name "*.idx" -exec "$1/Contents/Resources/merge_category_index" {} "/Library/Application Support/BeLight Software/ClipArt/English.lproj/CategoriesIndex" \;
else
cp -Rf "$1/Contents/Resources/Indexes" "/Library/Application Support/BeLight Software/ClipArt/English.lproj"
fi
open /Applications/
exit 0